#include<cstdio>

void insert(int arr[],size_t length,size_t index,int val)
{
	for (int i = length;i >= index;i--)
	{
		arr[i+1] = arr[i];
	}
	arr[index] = val;
}

void test()
{
	int arr[11] = {1,2,3,4,5,6,7,8,9,10};
	insert(arr,sizeof(arr)/sizeof(arr[0]),3,3);
	//
	for (int i = 0;i < sizeof(arr)/sizeof(arr[0]);i++)
	{
		printf("%d ",arr[i]);
	}

}

int main()
{
	test();
	return 0;
}